home *** CD-ROM | disk | FTP | other *** search
/ New Masters of Flash / New Masters of Flash.iso / pc / MOVIES / 16.dir / 00281_Text_text18.txt < prev    next >
Text File  |  2000-10-01  |  868b  |  21 lines

  1. One last thing before this bad boy will work. The ActionScript layer.
  2. Create a new layer, and name it ActionScript. Then in the first frame of that Layer add the following Action Script:
  3.  
  4. score = ΓÇ£0ΓÇ¥;
  5. Apos = 1;
  6. Bpos = 2;
  7. Cpos = 3;
  8. Dpos = 4;
  9. Epos = 5;
  10. Fpos = 6;
  11. Gpos = 7;
  12. Hpos = 8;
  13. s1pos = 1;
  14. s2pos = 2;
  15. s3pos = 3;
  16. s4pos = 4;
  17. s5pos = 5;
  18. s6pos = 6;
  19. s7pos = 7;
  20. s8pos = 8;
  21. What this code does is set the score to 0, since theyuser hasnΓÇÖt started playing yet, and then sets the variables weΓÇÖll need to make the check program work. WeΓÇÖre going to use a Cartesian grid. What this means is that A1 will equal 1,1 and A4 will equal 1,4 and F3 will equal 6,3 and so on. It will make more sense in a minute. (Note that Flash wonΓÇÖt let you start a variable name with a number so thatΓÇÖs why those sΓÇÖs are there in front of the number positions.)